﻿using System.Web.UI.WebControls;
using Inkubator.Wizard.WebWizard.WizardControl;

namespace Inkubator.Wizard.WizardGenerator.Style
{
    public class DefaultStyle
    {
        /// <summary>
        /// This method apply a default Style to the WizardControl component.
        /// </summary>
        /// <param name="wizard"></param>
        public static void applyDefaulStyle(WizardWeb wizard)
        {
            StyleWizardView style = new StyleWizardView(wizard);
            //WIZARD
            style.setWizardBackColor(System.Drawing.ColorTranslator.FromHtml("#EFF3FB"));
            style.setWizardBorderColor(System.Drawing.ColorTranslator.FromHtml("#B5C7DE"));

            //STEP STYLE
            style.setCellCenterForeColor(System.Drawing.ColorTranslator.FromHtml("#333333"));

            //SIDE BAR BUTTON STYLE
            style.setCellLeftBackColor(System.Drawing.ColorTranslator.FromHtml("#507CD1"));
            style.setCellLeftForeColor(System.Drawing.Color.White);

            //NAVIGATION BUTTON STYLE
            style.setButtonPanelBackColor(System.Drawing.ColorTranslator.FromHtml("#284E98"));
            style.setButtonPanelBorderColor(System.Drawing.ColorTranslator.FromHtml("#507CD1"));
            style.setButtonPanelBorderStyle(BorderStyle.Solid);
            style.setButtonPanelBorderWidth(1);
            style.setButtonPanelForeColor(System.Drawing.ColorTranslator.FromHtml("#284E98"));

            //HEADER STYLE
            style.setTitlePanelBackColor(System.Drawing.ColorTranslator.FromHtml("#284E98"));
            style.setTitlePanelBorderColor(System.Drawing.ColorTranslator.FromHtml("#EFF3FB"));
            style.setTitlePanelBorderStyle(BorderStyle.Solid);
            style.setTitlePanelBorderWidth(2);
            style.setTitlePanelFontBold(true);
            style.setTitlePanelForeColor(System.Drawing.Color.White);
            style.setTitlePanelHorizontalAlign(HorizontalAlign.Center);
        }

    }
}
